<?php

namespace app\api\controller;

use think\Controller;
use think\Request;

class User extends Controller
{
    /**
     * @return \think\response\Json
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     * 获取用户信息
     */
   public function userDetail(){
       $uid =1;
       $data = \app\api\model\User::where('uid',$uid)->find();
       $Text = \app\api\model\Text::where('user_id',$uid)->select();
       return getJson(200,'可以',['data'=>$data,'text'=>$Text]);
   }
}
